package com.dgz.springboot18.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection="admin")
public class AdminInfo {

    @Id
    private String adminId;  //管理员id
    private String adminName;  //管理员名称
    private String adminPassword;  //管理员密码
    private String salt;   //盐值
    private String adminTask;  //管理员操作任务的权限 [task:all]
    private LocalDateTime createTime;  //创建时间
    private LocalDateTime updateTime;  //修改时间

}
